<template>
  <div class="vbox index-list">
    <van-tabs title-active-color="#ff4444" v-model="active">
      <van-tab title="特惠"></van-tab>
      <van-tab title="特惠"></van-tab>
      <van-tab title="特惠"></van-tab>
      <van-tab title="特惠"></van-tab>
      <van-tab title="特惠"></van-tab>
      <van-tab title="特惠"></van-tab>
      <van-tab title="特惠"></van-tab>
    </van-tabs>
    <list :api="$api.goods.list">
      <template slot-scope="{dataList}">
        <list-item :is-search="isSearch" v-for="(item, i) in dataList" :key="i" :data="item"></list-item>
      </template>
    </list>
  </div>
</template>
<script>
import ListItem from "./list.item";
import List from "@comp/list";

export default {
  data() {
    return {
      active: 0
    };
  },
  computed: {},
  props: {
    isSearch: {}
  },
  watch: {},
  methods: {},
  components: {
    ListItem,
    List
  },
  mounted() {}
};
</script>
<style lang="less">
.index .index-list {
  flex: 1;
  //
  .list {
    flex: 1;
    overflow-y: auto;
  }
}
</style>